package com.np.demo1.delegate1;

public class MathService {
    public ICalculator calculator;

    public void setCalculator(ICalculator calculator) {
        this.calculator = calculator;
    }

    public int calc(int x, int y) {
        return calculator.calculate(x, y);
    }
}
